package org.wu.framework.lazy.orm.database.jpa.repository;

@NoLazyRepositoryBean
public interface LazyJpaRepository<T,ID> extends LazyListCrudRepository<T,ID> {

//    sql: select user_name,id from user where user_age={age} and is_deleted={is_deleted}
//    List<User> findUserNameAndIdByUserAgeAndIsDeleted(@LazyParam("user_age") Integer age,  @LazyParam("is_deleted") Boolean isDeleted);

//    sql: select user_name,id from user where user_age in {age} and is_deleted={is_deleted}
//    List<User> findUserNameAndIdByUserAgeInAndIsDeleted(@LazyParam("user_age") Integer age,  @LazyParam("is_deleted") Boolean isDeleted);
}
